namespace html { 
  namespace dom {
    inline node attribute::operator= (const string& _text) const {
      node parent;
      parent.set_attrib(name_,_text);
      return parent;
    }
    inline node attribute::operator[] (node _node) const {
      _node.tag() = name_;
      return _node;
    }
    inline node attribute::operator[] (const string& text_) const {
      node n(name_);
      n += text_;
      return n;
    }
  } 
}
